Logo Text Blaze

  • Docs
  • Community
  • Business
  • Documentation

    No search results

    Text Blaze

    Loading...

    Data Blaze

    Loading...

    Community Forums

    Loading...
  • Products
    • Text Blaze
      Snippets and templates
    • AI Blaze
      AI writing and editing
    • Data Blaze
      Tables and sheets
    Downloads
    • Add to Chrome
    • Windows app
    • MacOS app
  • By function
    • Support & operations
    • Sales
    • Healthcare
    • Education
    • Recruiting
    • Marketing
    Business
    • For teams
  • Resources
    • Documentation
    • Community forum
    • Gallery
    • Contact us
  • Pricing

Documentation

No search results

Text Blaze

Loading...

Data Blaze

Loading...

Community Forums

Loading...
Add to Chrome –  It's Free! Go to Dashboard ›
Docs > Command packs
  • Guides
    • Quick Start
    • Sharing Snippet Folders
    • Dynamic Commands
    • Date and Time
    • Autopilot
    • Forms
    • Formulas
    • Rules & Validation
    • Tables in Snippets
    • Connect Other Apps
    • Tidying Whitespace
    • Lists
    • Read Data from Websites
    • Teams and Organizations
  • Tutorial Videos
  • Gallery
  • Frequently Asked Questions
  • Formula Reference
  • Dynamic Commands
    • Using Dynamic Commands
    • {=} (Formula Command)
    • {button}
    • {click}
    • {clipboard}
    • {cursor}
    • {error}
    • {formdate}
    • {formmenu}
    • {formparagraph}
    • {formtext}
    • {formtoggle}
    • {if}
    • {import}
    • {key}
    • {link}
    • {note}
    • {repeat}
    • {run}
    • {site}
    • {snippet}
    • {time}
    • {user}
    • {wait}
  • Connected Snippets
    • Connected Snippets Overview
    • {image}
    • {urlload}
    • {urlsend}
    • {dbselect}
    • {dbinsert}
    • {dbupdate}
    • {dbdelete}
  • Command Packs
    • Capitalize
    • Gmail
    • LinkedIn
    • Randomize

What's on this Page

  • Table of Contents
    • {gmail-firstname}
    • {gmail-name}
    • {gmail-email}
    • {gmail-myemail}
    • {gmail-subject}
    • {gmail-datereceived}
    • {gmail-cc}
    • {gmail-bcc}
    • {gmail-send}
Command packs

Gmail

Summary: Customize snippets with the name or email of the person you are responding to.

Table of Contents

  1. {gmail-firstname} — Get the first name of the recipient.
  2. {gmail-name} — Get the full name of the recipient.
  3. {gmail-email} — Get the email address of the recipient.
  4. {gmail-myemail} — Get the email address, or alias, that you're sending the email from.
  5. {gmail-subject} — Get the subject line of the email.
  6. {gmail-datereceived} — Get the date you received the email.
  7. {gmail-cc} — Add an email address to the CC field.
  8. {gmail-bcc} — Add an email address to the BCC field.
  9. {gmail-send} — Sends the email.



{gmail-firstname}

Get the first name of the recipient.

It will get recipients' first names populated in the To field.

This can be used when replying to an email. It can also be used when composing a new message if recipients are already populated in the To field.

If no names can be found, the default setting will be returned.

Settings

SettingRequiredDescription
defaultnoThe default value to use if no recipient is found.
typeyesUse "single" to get only the first match (e.g. "John"), "multiple" to get all the matches (e.g. "John, Jack, and Susan") and "list" to get a list of all the matches.

Example Usage

One example is using this command along with the multiple setting to greet eveyone in the thread by their first name. Use {gmail-name} for a more formal tone.

Greet everyone in the email thread
Hey {gmail-firstname: type=multiple; default=there},

Let's have a get together early next week to discuss!

Thank you,
Manager



{gmail-name}

Get the full name of the recipient.

It will get recipients' full names populated in the To field.

This can be used when replying to an email. It can also be used when composing a new message if recipients are already populated in the To field.

If no names can be found, the default setting will be returned.

Settings

SettingRequiredDescription
defaultnoThe default value to use if no recipient is found on the email.
typeyesUse "single" to get only the first match (e.g. "John Smith"), "multiple" to get all the matches (e.g. "John Smith, Jack Doe, and Susan Carpenter") and "list" to get a list of all the matches.

Example Usage

Get someone's full name in the email thread with this command. It's useful when you're emailing someone for the first time.

Greet everyone in the email thread
Hey {gmail-name},

It's very nice to meet you. Let's set up a call a bit later this week. What times work best for you?

Thank you,
John Doe



{gmail-email}

Get the email address of the recipient.

It will get email addresses populated in the To field.

This can be used when replying to an email. It can also be used when composing a new message if recipients are already populated in the To field.

Settings

SettingRequiredDescription
defaultnoThe value to use if an email cannot be found.
typeyesUse "single" to get only the first match (e.g. "john@example.com"), "multiple" to get all the matches (e.g. "john@example.com and susan@example.com,") and "list" to get a list of all the matches.

Example Usage

There are a variety of things you can do with the email address in your messages. One example is using it to embed it in a link to your organization's website for sign up purposes.

Generate login link using email address to prepopulate
Hey {gmail-name}, you can always log back into your account by following this link: https://example.com/login?email={gmail-email}



{gmail-myemail}

Get the email address you're sending the email from.

If you have Gmail's "Send Mail As" feature enabled to send emails from multiple email addresses, it will return the one you choose.

This can be used when replying to an email. It can also be used when composing a new message.

Example Usage

One great example of this command is to change the messaging in your snippets based on the email address.

Send a message based on your Send Mail As email address.
{if: {gmail-myemail} = "first@example.com"}
  Hey, thank you for reaching out to our First team. We'll get back to you soon.
{elseif: {gmail-myemail} = "second@example.com"}
  Hey, second team here. We're gonna have to dig a bit deeper into this ticket and get back to you.
{endif}



{gmail-subject}

Get the subject line of the email.

This can only be used when replying to an email. It cannot be used when composing a new message.

Settings

SettingRequiredDescription
defaultnoThe value to use if no email subject is found.

Example Usage

You can check the contents of the email subject line to see if it contains specific keywords. One example is checking to see if the subject contains "Invoice" and if it does then automatically CC accounting by also utilizing the {gmail-cc} command.

Check if the email subject contains invoice and CC accounting
{if: contains({gmail-subject}, "invoice"); trim=yes}
{gmail-cc: accounting@example.com; trim=yes}
{endif: trim=yes}
Hey {gmail-name}, thank you for forwarding us your invoice. We'll get back to you if we have any additional questions.

Thank you,
Example Support



{gmail-datereceived}

Get the date you received the email.

This can only be used when replying to an email.

Settings

SettingRequiredDescription
defaultnoThe value to use if no date is found.
formatnoA string to format the date — (Visit https://blaze.today/commands/time/ for more information).

Example Usage

You can utilize the {gmail-date} command in conjunction with the {time} command to let the recipient know a different time based on the email’s date. This can be useful for customer support emails that respond first to users so say they’re looking into an issue and then provide an update some time afterwards.

In the example below we add an optional message if two days have passed since the email was received.

Changing messaging of support emails based on time
{dateFromEmail={time: X; at={gmail-datereceived}; pattern=MMM Do, YYYY; trim=yes}}
{now={time: X}; trim=yes}
{twoDaysInUnixTime=172800; trim=yes}
Hey {gmail-name}, thank you for reaching out to Example.com support.{if: abs(dateFromEmail - now) >= twoDaysInUnixTime} We're so sorry for taking so long to get back to you we've been swamped with support tickets. {endif}

We're reviewing your ticket now and will be getting back to you shortly.

Thank you,
Example Support Team



{gmail-cc}

Add an email address to the CC field.

This can be used when replying to an email and when composing a new message.

Settings

SettingRequiredDescription
addressyesThe email address to add.

Example Usage

One example is utilizing {gmail-email} or {gmail-name} commands in conjunction with {gmail-cc} to make sure that a specific person always gets CC’d for certain emails from certain people.

Automatically CC someone else
Hey {gmail-name}, that's a very good question. Give us a bit to research and get back to you.
{gmail-cc: address=manager@example.com; trim=yes}
Thank you,
Sally



{gmail-bcc}

Add an email address to the BCC field.

This can be used when replying to an email and when composing a new message.

Settings

SettingRequiredDescription
addressyesThe email address to add.

Example Usage

There are a variety of services that provide BCC email addresses to let you ping their service. One example is Pipedrive, a CRM service, that provides you with a BCC email address. You can use this command to automatically include that BCC address in important emails.

Automatically add BCC address from CRM
Hey {gmail-name}, thank you for reaching out!
{gmail-bcc: address=yourcompany@pipedrive.com}



{gmail-send}

This command will send your email immediately after the snippet is inserted into the email textarea. Our recommenation is to enable Undo Send in Gmail.

Send the email.

This can be used when replying to an email and when composing a new message.

It should be used as the last command in your snippet.

Example Usage

Speed up the sending of your support emails by adding this command to the end of your snippets.

About

Plans and Pricing
Sharing Snippets
Text Blaze for Business
Forms
Autopilot
Dynamic Commands
Command Packs
Text Blaze for Windows
Text Blaze for macOS

Support

Get Started with Text Blaze
Contact Us
Documentation
Community Forum
Blog
Gallery
Engineering Blog

Solution for

Business
Customer Support
Recruiters
Education
Healthcare
Sales
Property Managers
AI

Other

Privacy Policy
Terms of Service
Open Source Licenses
Affiliate
© Blaze Today Inc